<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>clamav</Name>
        <Homepage>https://www.clamav.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPL-2</License>
        <IsA>app:console</IsA>
        <Summary>Clam Antivirus software.</Summary>
        <Description>Clam AntiVirus is a GPL anti-virus toolkit for UNIX.</Description>
        <Archive sha1sum="e9167e8cee8eab364c08a8ea35a3849e38554396" type="targz">
            https://www.clamav.net/downloads/production/clamav-1.0.1.tar.gz
        </Archive>	  
        <BuildDependencies>
            <Dependency>rust</Dependency>
            <Dependency>cmake</Dependency>
            <Dependency>ninja</Dependency>
            <!-- <Dependency>libmilter</Dependency> -->
            <Dependency>curl-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>check-devel</Dependency>
            <Dependency>json-c-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>python3-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>libpcre2-devel</Dependency>
            <Dependency>libiconv-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">daemon_confs.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>clamav</Name>
        <RuntimeDependencies>
            <Dependency>curl</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>json-c</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>libpcre2</Dependency>
            <Dependency>libiconv</Dependency>
            <!-- <Dependency>libmilter</Dependency> -->
        </RuntimeDependencies>
        <Files>
            <Path fileType="cfgfiles">/etc/clamav</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/run/clamav</Path>
            <Path fileType="data">/var/lib/clamav</Path>
            <Path fileType="data">/var/log/clamav</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
        <AdditionalFiles>
            <!-- <AdditionalFile owner="root" permission="0644" target="."></AdditionalFile> -->
        </AdditionalFiles>
        <Provides>
            <COMAR script="package.py">System.Package</COMAR>
            <COMAR script="clamd.py">System.Service</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>freshclam</Name>
        <RuntimeDependencies>
            <Dependency release="current">clamav</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="cfgfiles">/etc/clamav/freshclam.conf</Path>
            <Path fileType="executable">/usr/bin/freshclam</Path>
            <Path fileType="data">/usr/lib/libfreshclam.so</Path>
            <Path fileType="data">/usr/lib/libfreshclam.so.2</Path>
            <Path fileType="data">/usr/lib/libfreshclam.so.2.0.2</Path>
            <Path fileType="man">/usr/share/man/man1/freshclam.1</Path>
            <Path fileType="man">/usr/share/man/man5/freshclam.conf.5</Path>
        </Files>
        <Provides>
            <COMAR script="freshclam.py">System.Service</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>clamav-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">clamav</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="6">
            <Date>2023-03-09</Date>
            <Version>1.0.1</Version>
            <Comment>Version bump.</Comment>
            <Name>fury</Name>
            <Email>uglyside@yandex.ru</Email>
        </Update>
        <Update release="5">
            <Date>2022-12-25</Date>
            <Version>1.0.0</Version>
            <Comment>Version bump.</Comment>
            <Name>fury</Name>
            <Email>uglyside@yandex.ru</Email>
        </Update>
        <Update release="4">
            <Date>2022-11-15</Date>
            <Version>0.105.1</Version>
            <Comment>Version bump.</Comment>
            <Name>fury</Name>
            <Email>uglyside@yandex.ru</Email>
        </Update>
        <Update release="3">
            <Date>2021-01-31</Date>
            <Version>0.103.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Ali Cengiz Kurt</Name>
            <Email>alicengizkurt@gmail.com</Email>
        </Update>
         <Update release="2">
            <Date>2019-01-13</Date>
            <Version>0.101.1</Version>
            <Comment>Version Bump</Comment>
            <Name>Ali Cengiz Kurt</Name>
            <Email>alicengizkurt@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2018-11-30</Date>
            <Version>0.100.2</Version>
            <Comment>First rRelease.</Comment>
            <Name>Ali Cengiz Kurt</Name>
            <Email>alicengizkurt@gmail.com</Email>
        </Update>
    </History>
</PISI>
